//
//  CustomCollectionViewLayout.h
//  15-HomeWork
//
//  Created by dllo on 16/8/3.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <UIKit/UIKit.h>


@protocol CustomCollectionViewLayoutDelegate <NSObject>

- (CGFloat)collectionView:(UICollectionView *)collectionView
                   layout:(UICollectionViewLayout*)collectionViewLayout
                   height:(CGFloat)height
   widthForItemAtIndexPath:(NSIndexPath *)indexPath;
@end
@interface CustomCollectionViewLayout : UICollectionViewLayout

@property (nonatomic, assign) CGFloat cellMargin;
@property (nonatomic, assign) CGFloat cellHeight;
@property (nonatomic, assign) CGFloat cellWidth;
@property (nonatomic, strong)UIColor *backGroundColor;
@property (nonatomic, weak) id <CustomCollectionViewLayoutDelegate> delegate;
@end
